package ui;

import javax.swing.JPanel;

import view.PlayerRep;
import view.Map;

public class ContainerView extends JPanel{

	public ContainerView(){

	}
	
	public void start(PlayerRep player, Map map){
		removeAll();
		add(player);
		player.update();
		setMap(map);
	}
	public void setMap(Map map){
		setLayout(null);
		add(map);
		map.setLocation(Window.height-map.getWidth()/2, Window.width-map.getHeight()/2);
		updateUI();
	}
	
}
